/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
}

.App {
  min-height: 100vh;
}

/* 移动端样式 */
.mobile-container {
  max-width: 375px; /* iPhone 15 宽度 */
  margin: 0 auto;
  background-color: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-header {
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-content {
  padding-bottom: 60px; /* 为底部导航留空间 */
  min-height: calc(100vh - 44px);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 60px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  text-decoration: none;
  padding: 8px;
  min-width: 60px;
}

.nav-item.active {
  color: #ff6b35;
}

.nav-item .icon {
  font-size: 20px;
  margin-bottom: 2px;
}

/* ============ 首页样式 ============ */
.home-container {
  background-color: #f5f5f5;
}

/* 顶部搜索和位置栏 */
.home-header {
  background: linear-gradient(135deg, #ff6b35, #ff8c69);
  padding: 16px;
  color: white;
}

.location-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.location-text {
  color: white;
  opacity: 0.9;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-search {
  flex: 1;
}

.home-search .ant-input {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  height: 25px;
  font-size: 12px;
  padding: 0px !important;  
}

.home-search .ant-input-search-button {
  background-color: #ff3535;
  border: none;
  border-radius: 0 20px 20px 0;
  /* height: 33px; */
}

.cart-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.cart-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 轮播图区域 */
.banner-section {
  height: 180px;
  margin-bottom: 8px;
}

.banner-item {
  height: 180px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  bottom: 12px !important;
}

.banner-dots .ant-carousel-dot {
  width: 6px;
  height: 6px;
}

.banner-dots .ant-carousel-dot button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

.banner-dots .ant-carousel-dot-active button {
  background-color: #ff6b35;
}

/* 分类导航 */
.category-section {
  background-color: #fff;
  margin-bottom: 8px;
  padding: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 12px;
}

.category-name {
  font-size: 12px;
  text-align: center;
  color: #666;
}

/* 热门推荐 */
.hot-section {
  background-color: #fff;
  margin-bottom: 8px;
  padding: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.hot-products {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hot-product-item {
  flex-shrink: 0;
  width: 120px;
  cursor: pointer;
  transition: all 0.3s;
}

.hot-product-item:hover {
  transform: translateY(-2px);
}

.hot-product-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.hot-product-info {
  text-align: center;
}

.hot-product-name {
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.hot-product-price {
  color: #ff6b35;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
}

.hot-product-sales {
  color: #999;
  font-size: 10px;
}

/* 商品推荐区域 */
.products-section {
  background-color: #fff;
  padding: 16px;
}

.products-section .section-header {
  margin-bottom: 5px;
}

/* 商品卡片样式 */
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price {
  color: #ff6b35;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.product-sales {
  color: #999;
  font-size: 12px;
}

/* 瀑布流布局 */
.waterfall-container {
  display: flex;
  gap: 8px;
}

.waterfall-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 加载和提示区域 */
.loading-section {
  text-align: center;
  padding: 20px;
  background-color: #fff;
}

.no-more-section {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
  background-color: #fff;
}

/* ============ 原有样式继续保持 ============ */

/* 搜索框样式 */
.search-bar {
  padding: 8px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
  background-color: #f5f5f5;
}

/* 轮播图样式 */
.banner-container {
  height: 180px;
  margin-bottom: 16px;
}

/* 购物车样式 */
.cart-item {
  display: flex;
  padding: 16px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  color: #ff6b35;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.quantity-input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 1px solid #d9d9d9;
  border-left: none;
  border-right: none;
}

/* ============ 商品详情页样式 ============ */
.product-detail-container {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 80px;
}

.product-detail-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fff;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.product-detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
  color: #666;
}

/* 头部导航 */
.product-detail-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-back-btn {
  color: #333;
  font-size: 18px;
  padding: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  color: #333;
  font-size: 16px;
  padding: 8px;
}

/* 商品图片区域 */
.product-images-section {
  position: relative;
  height: 375px;
  background-color: #fff;
  margin-top: 56px;
}

.product-image-slide {
  height: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-indicator {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

/* 商品信息区域 */
.product-info-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

/* 价格区域 */
.price-section {
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.current-price {
  color: #ff6b35;
  font-size: 24px;
  font-weight: bold;
}

.original-price {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.price-tags {
  flex: 1;
  display: flex;
  gap: 4px;
}

.discount-tag {
  font-size: 10px;
  height: 18px;
  line-height: 16px;
  padding: 0 4px;
  margin: 0;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-tag {
  font-size: 10px;
  height: 16px;
  line-height: 14px;
  padding: 0 4px;
  margin: 0;
}

.coupon-text {
  color: #333;
  font-size: 12px;
}

/* 标题区域 */
.title-section {
  margin-bottom: 12px;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.product-subtitle {
  color: #ff6b35;
  font-size: 12px;
  background-color: #fff2f0;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
}

/* 统计信息区域 */
.stats-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sales-text {
  color: #666;
  font-size: 12px;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-text {
  color: #666;
  font-size: 12px;
}

/* 物流信息 */
.delivery-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delivery-icon {
  color: #ff6b35;
  font-size: 16px;
  margin-top: 2px;
}

.delivery-info {
  flex: 1;
}

.delivery-main {
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
}

.delivery-detail {
  color: #666;
  font-size: 12px;
}

/* 保障信息 */
.guarantee-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 12px;
}

.guarantee-icon {
  color: #52c41a;
  font-size: 14px;
}

.stock-status {
  color: #333;
  font-weight: 500;
}

/* 规格选择 */
.specs-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.spec-group {
  margin-bottom: 16px;
}

.spec-group:last-child {
  margin-bottom: 0;
}

.spec-title {
  color: #333;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-option {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.spec-option.active {
  border-color: #ff6b35;
  background-color: #fff2f0;
  color: #ff6b35;
}

.spec-option:hover {
  border-color: #ff6b35;
}

.spec-price-diff {
  color: #ff6b35;
  font-size: 10px;
}

/* 商品详情 */
.product-description-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.description-title {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.description-content {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 底部操作栏 */
.product-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 70px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 999;
}

.bottom-action-left {
  display: flex;
  gap: 24px;
  margin-right: 16px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.action-item:hover {
  transform: scale(1.1);
}

.action-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.action-text {
  font-size: 10px;
  color: #666;
}

.bottom-action-right {
  flex: 1;
  display: flex;
  gap: 8px;
}

.add-cart-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background-color: #ff8c69;
  border-color: #ff8c69;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.add-cart-btn:hover {
  background-color: #ff7a56;
  border-color: #ff7a56;
}

.buy-now-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  font-size: 14px;
  font-weight: 500;
}

.buy-now-btn:hover {
  background-color: #e55a2e;
  border-color: #e55a2e;
}

/* 规格选择弹窗 */
.product-spec-modal .ant-modal-content {
  border-radius: 12px 12px 0 0;
}

.product-spec-modal .ant-modal-body {
  padding: 0;
}

.spec-modal-content {
  padding: 20px;
}

.modal-product-info {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-product-details {
  flex: 1;
}

.modal-price {
  color: #ff6b35;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.modal-stock {
  color: #666;
  font-size: 12px;
  margin-bottom: 4px;
}

.modal-selected-specs {
  color: #666;
  font-size: 12px;
}

.modal-spec-group {
  margin-bottom: 20px;
}

.spec-group-title {
  color: #333;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.spec-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-option-item {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.spec-option-item.selected {
  border-color: #ff6b35;
  background-color: #fff2f0;
  color: #ff6b35;
}

.spec-option-item:hover {
  border-color: #ff6b35;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.quantity-label {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-controls .ant-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #d9d9d9;
}

.quantity-input {
  width: 60px;
  text-align: center;
}

.quantity-input .ant-input-number-input {
  text-align: center;
  font-weight: 500;
}

.modal-confirm-btn {
  height: 44px;
  border-radius: 22px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  font-size: 16px;
  font-weight: 500;
}

.modal-confirm-btn:hover {
  background-color: #e55a2e;
  border-color: #e55a2e;
}

/* ============ 原有商品详情样式保留（兼容性） ============ */

.product-detail {
  background-color: #f5f5f5;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.back-btn, .more-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
}

.back-btn:hover, .more-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.product-images {
  position: relative;
  height: 375px;
  background-color: #fff;
}

.product-main-image {
  width: 100%;
  height: 375px;
  object-fit: cover;
}

.custom-dots {
  bottom: 16px !important;
}

.product-basic-info {
  background-color: #fff;
  padding: 20px 16px;
  margin-bottom: 8px;
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.current-price {
  color: #ff6b35;
  font-size: 28px;
  font-weight: bold;
}

.original-price {
  color: #999;
  font-size: 16px;
  text-decoration: line-through;
}

.product-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.product-stats {
  display: flex;
  gap: 16px;
  color: #666;
  font-size: 12px;
  margin-bottom: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-text {
  color: #666;
  font-size: 12px;
}

.product-specs {
  background-color: #fff;
  padding: 20px 16px;
  margin-bottom: 8px;
}

.spec-group {
  margin-bottom: 20px;
}

.spec-name {
  color: #333;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.spec-options .ant-radio-button-wrapper {
  margin-right: 8px;
  margin-bottom: 8px;
}

.spec-price {
  color: #ff6b35;
  font-size: 12px;
}

.delivery-info, .product-description {
  background-color: #fff;
  padding: 20px 16px;
  margin-bottom: 8px;
}

.delivery-item {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.product-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 70px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 999;
}

.action-left {
  display: flex;
  gap: 20px;
  margin-right: 16px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  font-size: 12px;
  padding: 8px;
  border: none;
  background: none;
}

.action-btn .anticon {
  font-size: 20px;
  margin-bottom: 2px;
}

.action-right {
  flex: 1;
  display: flex;
  gap: 8px;
}

.cart-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background-color: #ff8c69;
  border-color: #ff8c69;
  color: #fff;
  font-size: 14px;
}

.buy-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  font-size: 14px;
}

.spec-modal .ant-modal-content {
  border-radius: 12px 12px 0 0;
}

.modal-product-info {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-product-details {
  flex: 1;
}

.modal-price {
  color: #ff6b35;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.modal-stock {
  color: #666;
  font-size: 12px;
  margin-bottom: 4px;
}

.modal-specs {
  color: #666;
  font-size: 12px;
}

.modal-spec-group {
  margin-bottom: 20px;
}

.spec-option-btn {
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.quantity-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}

.quantity-input {
  width: 80px;
}

.confirm-btn {
  height: 44px;
  border-radius: 22px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  font-size: 16px;
}

/* 订单确认页样式 */
.order-confirm {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 80px;
}

.order-header {
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.address-section {
  background-color: #fff;
  margin-bottom: 8px;
}

.address-item {
  display: flex;
  padding: 16px;
  cursor: pointer;
}

.address-icon {
  color: #ff6b35;
  font-size: 20px;
  margin-right: 12px;
  margin-top: 2px;
}

.address-info {
  flex: 1;
}

.address-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.receiver-name {
  font-size: 16px;
  font-weight: 500;
  margin-right: 12px;
}

.receiver-phone {
  color: #666;
  font-size: 14px;
}

.address-detail {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.add-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #ff6b35;
  font-size: 14px;
  cursor: pointer;
}

.order-products {
  background-color: #fff;
  margin-bottom: 8px;
}

.section-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}

.order-product-item {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-product-item:last-child {
  border-bottom: none;
}

.order-product-item .product-image {
  width: 160px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.order-product-item .product-info {
  flex: 1;
}

.order-product-item .product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  color: #999;
  font-size: 12px;
  margin-bottom: 8px;
}

.product-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: #ff6b35;
  font-size: 16px;
  font-weight: bold;
}

.quantity {
  color: #999;
  font-size: 14px;
}

.points-section, .payment-section {
  background-color: #fff;
  margin-bottom: 8px;
}

.points-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.points-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.points-info {
  font-size: 12px;
  color: #999;
}

.discount-info {
  padding: 0 16px 16px;
  color: #ff6b35;
  font-size: 14px;
}

.payment-methods {
  padding: 0 16px 16px;
}

.payment-option {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-icon {
  font-size: 20px;
}

.order-summary {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-item.discount {
  color: #ff6b35;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: bold;
}

.total-amount {
  color: #ff6b35;
}

.order-submit {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 60px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.submit-info {
  flex: 1;
}

.total-text {
  font-size: 14px;
}

.total-price {
  color: #ff6b35;
  font-size: 18px;
  font-weight: bold;
}

.submit-btn {
  width: 120px;
  height: 40px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  border-radius: 20px;
}

/* 支付成功页样式 */
.payment-success {
  background-color: #fff;
  min-height: 100vh;
  padding: 40px 16px;
}

.success-info {
  text-align: center;
  margin-bottom: 24px;
}

.success-tips {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 32px;
}

.tip-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-icon {
  font-size: 16px;
  margin-right: 8px;
}

/* 订单列表页样式 */
.orders-page {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.orders-header {
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-tabs {
  background-color: #fff;
}

.order-tabs .ant-tabs-tab {
  margin: 0;
  padding: 12px 16px;
}

.orders-list {
  padding: 8px;
}

.order-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
  cursor: pointer;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.order-no {
  font-size: 12px;
  color: #999;
}

.order-products {
  margin-bottom: 12px;
}

.order-product {
  display: flex;
  margin-bottom: 8px;
}

.order-product:last-child {
  margin-bottom: 0;
}

.order-product .product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.order-product .product-info {
  flex: 1;
}

.order-product .product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-product .product-specs {
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
}

.order-product .product-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-product .price {
  color: #ff6b35;
  font-size: 14px;
  font-weight: bold;
}

.order-product .quantity {
  color: #999;
  font-size: 12px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-total {
  font-size: 14px;
  color: #333;
}

.order-total .total-amount {
  color: #ff6b35;
  font-weight: bold;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-time {
  font-size: 12px;
  color: #999;
}

/* 收藏夹页样式 */
.favorites-page, .history-page {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.favorites-header, .history-header {
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.favorites-list, .history-list {
  padding: 8px;
}

.favorite-item, .history-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
  cursor: pointer;
  position: relative;
}

.favorite-item .product-image, .history-item .product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.favorite-item .product-info, .history-item .product-info {
  flex: 1;
}

.favorite-item .product-name, .history-item .product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-item .product-price, .history-item .product-price {
  color: #ff6b35;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.favorite-item .product-sales {
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
}

.favorite-time, .browse-time {
  color: #999;
  font-size: 12px;
}

.remove-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* 浏览历史分组样式 */
.history-group {
  margin-bottom: 16px;
}

.date-header {
  background-color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-radius: 8px 8px 0 0;
}

.history-items {
  background-color: #fff;
  border-radius: 0 0 8px 8px;
}

.history-items .history-item {
  margin-bottom: 0;
  border-radius: 0;
  border-bottom: 1px solid #f0f0f0;
}

.history-items .history-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

/* 订单详情页样式 */
.order-detail {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 80px;
}

.order-detail-header {
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.order-status-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.status-header {
  margin-bottom: 16px;
}

.status-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.order-no {
  font-size: 12px;
  color: #999;
}

.address-section, .order-products-section, .order-amount-section, .order-info-section {
  background-color: #fff;
  padding: 16px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-info {
  padding-left: 24px;
}

.receiver-info {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.receiver-name {
  font-size: 16px;
  font-weight: 500;
  margin-right: 12px;
}

.receiver-phone {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.address-detail {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.amount-item, .info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.amount-item.discount {
  color: #ff6b35;
}

.amount-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: bold;
}

.amount-total .total-amount {
  color: #ff6b35;
}

.order-actions .ant-btn {
  height: 32px;
  border-radius: 16px;
  font-size: 12px;
  padding: 0 16px;
  min-width: 64px;
}

.order-actions .ant-btn-primary {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-buttons .ant-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
}

/* 管理端样式 */
.admin-container {
  display: flex;
  min-height: 100vh;
}

.admin-header {
  height: 64px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 200px;
  right: 0;
  z-index: 100;
}

.admin-sidebar {
  width: 200px;
  background-color: #001529;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-content {
  margin-left: 200px;
  margin-top: 64px;
  padding: 24px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 64px);
}

/* 登录页样式 */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 400px;
}

.login-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* 手机端登录页样式 */
.mobile-login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-login-logo {
  text-align: center;
  margin-bottom: 48px;
}

.mobile-login-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.mobile-login-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

/* 手机端适配 */
@media (max-width: 480px) {
  .mobile-login-container {
    padding: 24px 8px;
  }
  .mobile-login-title {
    font-size: 22px;
  }
  .mobile-login-logo {
    margin-bottom: 32px;
  }
  .mobile-login-subtitle {
    font-size: 14px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-content {
    margin-left: 0;
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============ 个人中心页面样式 ============ */
.profile-container {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* 登录提示页面 */
.profile-login-prompt {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.login-prompt-content {
  text-align: center;
  color: white;
}

.prompt-avatar {
  margin-bottom: 24px;
}

.prompt-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}

.prompt-subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 32px;
  color: #222;
}

.login-prompt-btn {
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 16px;
  min-width: 120px;
}

.login-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 用户信息头部 */
.profile-header {
  background: linear-gradient(135deg, #ff6b35, #ff8c69);
  padding: 20px 16px 16px 16px;
  color: white;
}

.user-basic-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  margin-right: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.user-id {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.user-location {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-action-btn {
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* 会员信息卡片 */
.member-info-section {
  padding: 0px;
  margin-top: -15px;
  margin-bottom: 8px;
}

.member-card {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.member-level {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.vip-badge {
  background-color: #ff6b35;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.points-tip {
  font-size: 12px;
  color: #666;
}

.points-section {
  margin-bottom: 16px;
}

.points-info {
  margin-bottom: 12px;
}

.points-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 500;
}

.points-row {
  display: flex;
  justify-content: space-between;
}

.points-item {
  text-align: center;
  flex: 1;
}

.points-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.points-value {
  font-size: 14px;
  color: #ff6b35;
  font-weight: 500;
}

.progress-section {
  margin-top: 8px;
}

.member-progress .ant-progress-bg {
  height: 4px !important;
}

.coupon-alert {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff2f0, #ffe7e7);
  border: 1px solid #ffd6cc;
  border-radius: 8px;
  padding: 12px;
  gap: 12px;
}

.coupon-icon {
  font-size: 20px;
}

.coupon-text {
  flex: 1;
  font-size: 12px;
  color: #333;
}

.coupon-btn {
  height: 28px;
  border-radius: 14px;
  background-color: #ff6b35;
  border-color: #ff6b35;
  font-size: 12px;
  padding: 0 12px;
}

/* 订单状态区域 */
.order-status-section {
  background-color: white;
  padding: 16px;
  margin-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.view-all-btn {
  color: #666;
  font-size: 12px;
  padding: 0;
  height: auto;
}

.order-status-grid {
  display: flex;
  justify-content: space-around;
}

.order-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.order-status-item:hover {
  transform: translateY(-2px);
}

.status-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.status-text {
  font-size: 12px;
  color: #666;
}

/* 待评价提醒 */
.evaluation-reminder {
  display: flex;
  align-items: center;
  background: white;
  margin: 0 16px 8px 16px;
  padding: 12px;
  border-radius: 8px;
  gap: 12px;
}

.reminder-icon {
  font-size: 20px;
}

.reminder-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.reminder-count {
  font-size: 12px;
  color: #666;
}

/* 快捷功能区域 */
.quick-actions-section {
  background-color: white;
  padding: 16px;
  margin-bottom: 8px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
}

.quick-action-item:hover {
  border-color: #ff6b35;
  background: #fff2f0;
  transform: translateY(-1px);
}

.action-icon-large {
  font-size: 24px;
  margin-right: 12px;
}

.action-info {
  flex: 1;
}

.action-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
}

.action-subtitle {
  font-size: 12px;
  color: #666;
}

/* 服务工具区域 */
.services-section {
  background-color: white;
  padding: 16px;
  margin-bottom: 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.service-item:hover {
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.service-name {
  font-size: 12px;
  color: #333;
}